package com.netease.pris.activity;

import android.graphics.Bitmap;
import android.view.WindowManager;
import android.view.WindowManager.LayoutParams;
import android.widget.ImageView;
import com.netease.pris.activity.view.cb;

class x
  implements cb
{
  private WindowManager.LayoutParams b;
  private WindowManager c;
  private ImageView d;

  x(MainGridActivity paramMainGridActivity)
  {
  }

  public void a()
  {
    if (this.d != null)
    {
      this.d.setVisibility(8);
      if (this.c == null)
        this.c = ((WindowManager)this.a.getSystemService("window"));
      this.c.removeView(this.d);
      this.d.setImageDrawable(null);
      this.d = null;
    }
  }

  public void a(int paramInt1, int paramInt2)
  {
    this.b.x = paramInt1;
    this.b.y = paramInt2;
    this.c.updateViewLayout(this.d, this.b);
  }

  public void a(int paramInt1, int paramInt2, Bitmap paramBitmap)
  {
    this.b = new WindowManager.LayoutParams();
    this.b.gravity = 51;
    this.b.x = paramInt1;
    this.b.y = paramInt2;
    this.b.height = -2;
    this.b.width = -2;
    this.b.flags = 920;
    this.b.format = -3;
    this.b.windowAnimations = 0;
    ImageView localImageView = new ImageView(this.a);
    localImageView.setPadding(0, 0, 0, 0);
    localImageView.setImageBitmap(paramBitmap);
    this.c = ((WindowManager)this.a.getSystemService("window"));
    this.c.addView(localImageView, this.b);
    this.d = localImageView;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.x
 * JD-Core Version:    0.6.0
 */